﻿using DFGK_WMS.Model.Models.LyModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK.IService.LY
{
    public interface IOrganizationUnitService
    {
        List<OrganizationUnit> GetOrganizationUnitData(string? name, out int totalCount, int pageIndex = 1, int pageSize = 15);
        bool DelOrganizationUnit(long organizationUnitId);
        bool AddOrModefiyOrganizationUnit(OrganizationUnit model, out string errorMsg);

        OrganizationUnit? GetOrganizationUnit(long organizationUnitId);
    }
}
